resultant gate